package implementspratice;

/**
 * User: 86156
 * Date: 2023-04-12
 * Time: 21:52
 */
public abstract class Animal {

    String name;
    int age;


    public abstract void eat();

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public Animal() {

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
